<h2> Liste des paiements clients</h2>

<table id="t_paiements">
	<thead>
    	<tr>
    		<th> ID </th>
            <th> Client </th>
            <th> Date </th>
            <th> Montant TTC </th>
    		<th></th>
    	</tr>
    </thead>
	<?foreach($aPaiementsClient as $facture){
		$client = $aContacts[$facture->contact_id];
		$client_name = $client->prenom." ".$client->nom;
		if($client->societe != "")
			$client_name .= " (".$client->societe.")";
	?>
        <tr>
        	<td><?=$facture->_id?></td>
            <td><?=$client_name?></td>
            <td><?=date("d-m-Y",strtotime($facture->date))?></td>
            <td><?=$facture->montant_ttc?> &euro;</td>
            <td> 
            	<a href="javascript:removePaiement('<?=$facture->_id?>');"><img src="/public/images/icons/remove.png" title="Supprimer le paiement"/></a> 
            
            </td>
    	</tr>
	<?}?>
</table>